package com.deliinsns.sys.util;

/**
 * 定义框架系统常量的类
 * @author tangwuqiang
 */
public interface SystemConstant {
	
	// ★★★★★★★★★★★★★★★★★系统★★★★★★★★★★★★★★★
	public static final String SYSCHARACTER ="UTF-8";	    //容器字符编码
	public static final	String CONTAINER_TYPE = "spring"; //容器类型，可以为Spring或者是EJB
	String LOGO_PIC_PATH = "/images/logo.png";//平台logo地址
	// ★★★★★★★★★★★★★★★★★参数★★★★★★★★★★★★★★★
	public static final String PAGE_NO_NAME ="pageNo";		//当前页码变量名
	public static final String PAGE_SIZE_NAME ="pageSize";		//每页大小变量名
	public static final Integer PAGE_NO_DEFAULT = 1;  			//默认页码
	public static final Integer PAGE_SIZE_DEFAULT = 15;  			//默认每页大小
	
	// ★★★★★★★★★★★★★★★★★消息★★★★★★★★★★★★★★★//
	int STATE_SUCCESS = 200;   //返回状态：成功
	int STATE_WARNNING =201;   	//返回状态：警告
	int STATE_ERROR = 202;   	//返回状态：失败
	public static final String LOGIN_SUCCESS = "101";   
	public static final String LOGOUT_SUCCESS = "102"; 
	public static final String ADD_SUCCESS = "103"; 
	public static final String UPDATE_SUCCESS = "104"; 
	public static final String DELETE_SUCCESS = "105"; 
	public static final String GET_SUCCESS = "106"; 
	
	public static final String LOGIN_FAILD = "201"; 
	public static final String LOGOUT_FAILD = "202"; 
	public static final String ADD_FAILD = "203"; 
	public static final String UPDATE_FAILD = "204"; 
	public static final String DELETE_FAILD = "205"; 
	public static final String GET_FAILD = "206";
	public static final String PARAM_ERROR = "207"; 

	// ★★★★★★★★★★★★SESSION相关★★★★★★★★★★★★
	String SESSION_ID = "bf7dd2f961c9ebafc3d4df58620c19b0";//系统sessionId 键
	String USER_ID = "__userId";		//用户Id 键
	String UNIT_ID = "__unitId";		//学校ID
	String ROLE_ID = "__roleId";		//角色Id
	String GROUPING_ID = "__groupingId";	//区域Id
	String STATE_ID = "__stateId";	//省份Id
	String USER_NAME = "__userName";		//用户名称 键
	String USER_TYPE = "__userType";			// 用户类型 键
	String ORGANIZATION_ID = "__organizationId";	//部门 键
	String THEME_CODE = "__themeCode";	//主题 键
	String STYLE_CODE = "__styleCode";		//风格 键
	String LOCALE = "__locale";		//区域和语言 键
	String VERSION = "__version";	//系统版本 键
	String ORG_CODE = "__orgCode";		//组织编号 键
	String CLIENT_IP = "__clientIp";		//客户端Ip地址  键
	String ON_LINE_USER_KEY = "__ON_LINE_USER";		//在线用户的key
	String COOKIE_PREFIX = "__cookie:";   	//cookie的前缀
	String LOGOUT_USER = "__LOGOUT_USER";	//登录出系统的前缀
	String LOGOUT_TYPE_TIMEOUT = "timeout";	//超时
	String LOGOUT_TYPE_KICKOFF = "kickoff";  	//被踢出
	String LOGOUT_TYPE_NORMAL = "normal";  	//正常退出
	String LOG_ID = "__logId";		//日志ID   键
	String CLIENT_HEIGHT = "__clientHeight"; //客户端显示器的分辨率：高
	String CLIENT_WIDTH = "__clientWidth";  	//客户端显示器的分辨率：宽
	String CLIENT_BROWSER_TYPE = "__clientBrowserType";  //客户端浏览器类型
	String USER_AGENT = "__userAgent";  //客户端浏览器类型
	String URL_AUTHORIZE_PREFIX = "__urlAuthorizePrefix";  //URL权限的前缀
	String REQUEST_IS_AJAX = "is_ajax";  //请求是否为ajax请求
	String REQUEST_URL = "__requestUrl";  //请求地址
	String DEFAULT_ORG_CODE = "default";  //默认的组织代码
	String DEFAULT_VERSION = "version";   //默认的版本号
	String CREATE_ITEM_KEY = "__createList";  //新增的明细行的键
	String DELETE_ITEM_KEY = "__deleteList";  //删除的明细行的键
	String UPDATE_ITEM_KEY = "__updateList";  //修改的明细行的键
	String ASC = "asc";  //升序
	String DESC = "desc";  	//降序
	String DEFAULT_LOCALE = "zh_CN"; //默认的区域
	String I18N_KEY_SEPERATOR = ":";    //i18nkey分隔符
	String ALIAS_SEPERATOR = "_";  	//别名分隔符
	String PATH_SEPERATOR = ".";  //路径分隔符
	String PROPERTY_SEPERATOR = ",";   ////多属性分隔符
	String PARAMETER_PREFIX = "p_";  //参数前缀
	String FULL_DATE_PATERN = "yyyy-MM-dd HH:mm:ss.SSS";//时间格式化格式

}
